package com.example.demo.entity.pojo.repository;

import com.baomidou.mybatisplus.annotation.TableName;
import com.example.demo.common.entity.pojo.BaseEntityPoJo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 仓库材料实体.
 *
 * @author Mei Ruoxiao
 * @since 2020/9/15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel("仓库材料")
@TableName(value = "material")
public class MaterialPoJo extends BaseEntityPoJo {
    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "规格/型号", example = "HD20200915S")
    private String spec;

    @ApiModelProperty(value = "材料编码", example = "HD5263")
    private String code;

    @ApiModelProperty(value = "库存", example = "25412")
    private Integer stock;

    @ApiModelProperty(value = "废品库存", example = "212")
    private Integer garbage;

    @ApiModelProperty(value = "所属仓库ID", example = "182933571428352")
    private Long repositoryId;

    @ApiModelProperty(value = "材料类型 0-材料 1-成品 2-废品", example = "0")
    private int type;

    @ApiModelProperty(value = "内容验证", example = "嘻嘻")
    private String verify;

}
